#define _CRT_SECURE_NO_WARNINGS

#include"stack.h"

void test1()
{
	Stack s;
	StackInit(&s);
	StackPush(&s, 1);
	StackPush(&s, 2);
	StackPush(&s, 3);
	StackPush(&s, 4);
	StackPush(&s, 5);
	StackPrint(&s);

	STDataType data = StackTop(&s);
	printf("%d\n", data);

	int sz = StackSize(&s);
	printf("%d\n", sz);


	StackPop(&s);
	StackPop(&s);
	StackPrint(&s);

	data = StackTop(&s);
	printf("%d\n", data);

	sz = StackSize(&s);
	printf("%d\n", sz);

	StackDestroy(&s);
}

int main()
{
	test1();

	return 0;
}